package com.wyh.Mapper;

import com.wyh.pojo.AgeProportion;
import com.wyh.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface EmployeeMapper {
    public List<Employee> getEmployeeList();

    public List<Employee> getEmployeeByName(String  name);

    public Employee getEmployeeById(int  id);

    public int updateEmployee(Employee employee);

    public int addEmployee(Employee employee);

    public int deleteEmployee(int id);

    public List<AgeProportion> getAgeProportion();
}
